//
//  AppController.m
//  Forget
//
//  Copyright 2009 Reinier Haasjes 
//  
//  This file is covered by the MIT License.
//  See LICENSE for more information.
//

#import "AppController.h"
#import "debug.h"

@implementation AppController

/**
 ** Initialisation
 **/
- (id)init 
{
	debug_NSLog(@"init");	
	
	return self;
}

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
	debug_NSLog(@"applicationDidFinishLaunching");
	
	SLDatabase *database;
	NSString *dbPath;
	NSString *createSql = @"CREATE TABLE test (text varchar(255))";
	BOOL result;
	
	dbPath = [NSString stringWithString:@"/tmp/x.sqlite"];
	
	database = [SLDatabase databaseWithPath:dbPath];
	
	result = [database exec:createSql];	
}

- (void)awakeFromNib
{
	debug_NSLog(@"awakeFromNib");	
}

/**
 ** Functions
 **/

/**
 ** Binding Functions
 **/

/**
 ** Actions
 **/

@end
